Hello together, After applying filters to some user defined views, the filtered contents are exported. Once the export option is completed, the filtered view have to restored to its original view. is there any option available using dxl scripts. Any kind of help is appreciated:) Thanks, arn6cob Adminani - Thu Jan 22 23:26:15 EST 2015 |
Re: Restore the previous view Normally I would think that you can just take the name of the current view and load it after you are done. If you want to support to restore an unsaved view (i.e the user loaded a view, made changes, then started your script - and you want to go back to the state before starting the script), then I would simply save the view, make your modifications, load the view to restore all settings, delete the temporary view. Regards, Mathias |
Re: Restore the previous view Mathias Mamsch - Fri Jan 23 02:53:24 EST 2015 Normally I would think that you can just take the name of the current view and load it after you are done. If you want to support to restore an unsaved view (i.e the user loaded a view, made changes, then started your script - and you want to go back to the state before starting the script), then I would simply save the view, make your modifications, load the view to restore all settings, delete the temporary view. Regards, Mathias Thanks a lot Mathias. It worked :) |
Re: Restore the previous view Mathias Mamsch - Fri Jan 23 02:53:24 EST 2015 Normally I would think that you can just take the name of the current view and load it after you are done. If you want to support to restore an unsaved view (i.e the user loaded a view, made changes, then started your script - and you want to go back to the state before starting the script), then I would simply save the view, make your modifications, load the view to restore all settings, delete the temporary view. Regards, Mathias Hi, Isn't using the View->Reload do what you want? I don't know if there is a dxl command for this. In dxl, I noticed if the view has been modified (but not saved), then load(view) doesn't update the module back to the original view settings. What I have done is to load a different view, such as the Standard view, and then load the original view. This will then go back to the original view settings. Saves having to save the view as a new view and then deleting it. Hope this helps, Greg |
Re: Restore the previous view GregM_dxler - Fri Jan 23 16:55:32 EST 2015 Hi, Isn't using the View->Reload do what you want? I don't know if there is a dxl command for this. In dxl, I noticed if the view has been modified (but not saved), then load(view) doesn't update the module back to the original view settings. What I have done is to load a different view, such as the Standard view, and then load the original view. This will then go back to the original view settings. Saves having to save the view as a new view and then deleting it. Hope this helps, Greg The dxl command is: reloadViews |
Re: Restore the previous view Thank you all. reloadViews() , as well as load(viewName); Both worked out for me..!:) |